package org.lq.us.service;

import org.lq.us.commons.Page;
import org.lq.us.entity.Users;
import org.lq.us.query.UsersQuery;

public interface UsersService {
	
	public boolean save(Users u);
	public boolean update(Users u);
	public boolean delete(int id);
	public Users getById(int id);
	
	public void findPageQuery(Page<Users> page,UsersQuery uq);
	
	public int getCountQuery(UsersQuery uq);
	/**
	 * 
	 * @param name true : 代表存在, 否则可以使用
	 * @return
	 */
	public boolean getByName(String name);
	public Users login(String userName, String pwd,boolean... bool);
	

}
